<?php

/**
 * simple_textarea - Simple textarea object
 *
 * @package
 * @author Alexis Eric
 * @copyright Copyright (c) 2012 - Erra Prod
 * @version $1.0$
 * @access public
 */
class Std_TextAreaObject extends Erra_Fields_Base_Object {

    function __construct($objectId, $buildArgs = null) {
        parent::__construct($objectId, $buildArgs);

        $textarea_content = Erra_Fields_TextArea::create('textarea_content')
                ->setDescription(__('Textarea content'));
        $textarea_content->setCols(80);
        $textarea_content->setRows(7);

        $this->addFields($textarea_content);
    }

    public function __render($displayArgs = null) {
        $res = $this->textarea_content->value;
        return $res;
    }

}

?>